import { url } from '@/config';
// var request = window.axios;
// let url="/api/blade-visual"
import request from '@/router/axios';

//let VisualType = "Visual";

// export const getList = (params = {}) => request({
//   url: url + '/Category/List',
//   method: 'get',
//   params: params
// });

export const getList = (params = {}) => request({
  url: url + '/Category/ListPage',
  method: 'get',
  params: params
});

export const getObj = (params) => request({
  url: url + '/Category/Detail',
  method: 'get',
  params: params
});

export const addObj = (data = {}) => request({
  url: url + '/Category/Add',
  method: 'post',
  data: data
});
export const updateObj = (data = {}) => request({
  url: url + '/Category/Edit',
  method: 'post',
  data: data
});

export const delObj = (params) => request({
  url: url + '/Category/Delete',
  method: 'post',
  params: params
});
